import request from '@/utils/request';
import { parseStrEmpty } from "@/utils/frameWork";
// 协同任务列表
export function listInvoved(query) {
  return request({
    url: '/supervision/involvedPerson/list',
    method: 'get',
    params: query
  })
}

// 查询业务协同详情
export function getDetail(id,caseId) {
  return request({
    url: '/supervision/involvedPerson/getDetail?id=' + parseStrEmpty(id)+'&caseId='+caseId,
    method: 'get'
  })
}
// 新增业务协同
export function addInvoved(data) {
  return request({
    url: '/supervision/involvedPerson/add',
    method: 'post',
    data: data
  })
}
//删除业务协同
export function delColl(id) {
  return request({
    url: '/supervision/collaboration/' + id,
    method: 'delete'
  })
}
// 修改业务协同
export function updateColl(data) {
  return request({
    url: '/supervision/collaboration/update',
    method: 'post',
    data: data
  })
}

// 新增业务协同下拉列表
export function listTask(data) {
  return request({
    url: '/supervision/collaboration/listTask',
    method: 'post',
    data: data
  })
}

// 获取所有案件列表
export function getCaseList(data) {
  return request({
    url: "/supervision/caseManagement/getCaseList",
    method: "post",
    data: data,
  });
}
// 查询业务协同详情
export function editTag(id,tag) {
  return request({
    url: '/supervision/involvedPerson/editTag?id=' + parseStrEmpty(id)+"&tag="+tag,
    method: 'get'
  })
}
